<%@ include file="../../include.jsp" %>

<tiles:insertDefinition name="component.layout.SubPanel">
   <tiles:putAttribute name="title" value="Your Facebook Profile" />
   <tiles:putAttribute name="content">
<p>Hello, <c:out value="${profile.firstName}"/>!</p>
<dl>
   <dt>Facebook ID:</dt>
   <dd><c:out value="${profile.id}"/></dd>
   <dt>Name:</dt>
   <dd><c:out value="${profile.name}"/></dd>
   <dt>Email:</dt>
   <dd><c:out value="${email}"/></dd>
</dl>

<c:url value="/account/settings/connect/facebook/delete.html" var="disconnectUrl"/>
<form id="disconnect" action="${disconnectUrl}" method="post">
   <button type="submit">Disconnect from Facebook</button>  
   <input type="hidden" name="_method" value="delete" />
</form>

</tiles:putAttribute>
</tiles:insertDefinition>
